package com.ssmm.ssmm1.service;

import com.ssmm.ssmm1.pojo.Userr;

import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 * Created by naojiang on 2017/7/12.
 */
public interface UserService {

    public int login(String username,String password,String role);
    public boolean register(String username, String password, String nickname,
                            String sex,String address);
    public boolean delete(String username);
    public boolean update(String username, String password, String nickname,
                          String sex,String address);
    public List<Userr> list();
    public List<Userr> listPart(String username);
    public Userr find(String username);

    public Set<String> getRoles(String username);
    public Set<String> getPers(String username);
}
